package com.ssi.service.customer.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.ssi.dao.customer.ICustomerDao;
import com.ssi.entity.customer.Customer;
import com.ssi.service.customer.ICustomerService;

@Service("customerService")
public class CustomerServiceImpl implements ICustomerService{

	@Autowired
	@Qualifier("customerDao")
	private ICustomerDao customerDao;
	
	public List<Customer> checkUser(Customer customer) {
		return customerDao.checkUser(customer);
	}

	public Customer getUserById(int id) {
		return customerDao.getUserById(id);
	}

	public Long insertCustomer(Customer customer) {
		return customerDao.insertCustomer(customer);
	}

	public List<Customer> queryCustomerListByUserName(String userName) {
		return customerDao.queryCustomerListByUserName(userName);
	}

	public List<Customer> queryCustomerListByEmail(String userEmail) {
		return customerDao.queryCustomerListByEmail(userEmail);
	}


}
